package com.ssy.lingxi.message.model.vo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 推送设备请求实体
 * @author yzc
 * @version 2.0.0
 * @date 2021/3/28
 */
@Data
public class PushDeviceAddRequest implements Serializable {

    private static final long serialVersionUID = 2097887278764134917L;

    /**
     * 会员id
     */
    @NotNull(message = "会员id不能为空")
    private Long memberId;

    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    private Long userId;

    /**
     * 设备注册id
     */
    @NotEmpty(message = "设备注册id不能为空")
    private String registrationId;
}
